(function(doc, $$) {
	mui.init({
		pullRefresh: {
			container: '#pullrefresh',
			down: {
				callback: pullDownRefresh //下拉刷新
			},
			up: {
				callback: pullUpRefresh //上拉加载
			}
		}
	});
	function pullDownRefresh() {
		setTimeout(function(){
			mui.alert('下拉刷新');
			mui('#pullrefresh').pullRefresh().endPulldownToRefresh(); 
		}, 1500);
	}
	function pullUpRefresh() {
		setTimeout(function(){
			mui.alert('上拉加载')
			mui('#pullrefresh').pullRefresh().endPullupToRefresh(true);
		}, 1500);
	}

})(document, jQuery);